﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DLV.Library.Utilities;

namespace DLV.Data.Entities
{
    public class TicketInfo
    {

        #region private fields

        private int _ticketId = Null.NullInteger;
        private int _concernId = Null.NullInteger;
        private int _scheduleId = Null.NullInteger;
        private string _ticketName = Null.NullString;
        private string _sortDescription = Null.NullString;
        private string _detailDescription = Null.NullString;
        private int _typeId = Null.NullInteger;
      
        private int _createdBy = Null.NullInteger;
        private DateTime _createdDate = Null.NullDate;
        private int _updatedBy = Null.NullInteger;
        private DateTime _updatedDate = Null.NullDate;
        private int _status = Null.NullInteger;

        #endregion

        #region public properties

        public int TicketId
        {
            get { return _ticketId; }
            set { _ticketId = value; }
        }
        public int ConcernId
        {
            get { return _concernId; }
            set { _concernId = value; }
        }
        public int ScheduleId
        {
            get { return _scheduleId; }
            set { _scheduleId = value; }
        }
        public string TicketName
        {
            get { return _ticketName; }
            set { _ticketName = value; }
        }
        public string SortDescription
        {
            get { return _sortDescription; }
            set { _sortDescription = value; }
        }
        public string DetailDescription
        {
            get { return _detailDescription; }
            set { _detailDescription = value; }
        }
        public int TypeId
        {
            get { return _typeId; }
            set { _typeId = value; }
        }
       
        public int CreatedBy
        {
            get { return _createdBy; }
            set { _createdBy = value; }
        }
        public DateTime CreatedDate
        {
            get { return _createdDate; }
            set { _createdDate = value; }
        }
        public int UpdatedBy
        {
            get { return _updatedBy; }
            set { _updatedBy = value; }
        }
        public DateTime UpdatedDate
        {
            get { return _updatedDate; }
            set { _updatedDate = value; }
        }
        public int Status
        {
            get { return _status; }
            set { _status = value; }
        }

        #endregion

        #region Custom

        public string TypeName { get; set; }
        public string ConcernSortName { get; set; }

        public string BeginLocationName { get; set; }
        public string EndLocationName { get; set; }
        public string ScheduleName
        {
            get { return BeginLocationName + " -> " + EndLocationName; }
        }

        public string PriceName {
            get { return TypeName + " - " + TicketName + " - " + ScheduleName; }
        }
        public string RoomName { get; set; }
        #endregion
    }
}
